<template>
  <article-detail :read-only="readOnly" :infoid="infoid" :timestamp="timestamp" @dialogHide="dialogHide($event)" />
</template>

<script>
import ArticleDetail from './components/ArticleDetail'

export default {
  name: 'EditForm',
  components: { ArticleDetail },
  props: {
    readOnly: {
      type: Boolean,
      default: false
    },
    infoid: {
      type: Number,
      default: 0
    },
    timestamp: {
      type: Number,
      default: 0
    }
  },
  watch: {
    timestamp: {
      handler(val, oldVal) {
        console.log('val:' + val)
      },
      immediate: true
    }
  },
  methods: {
    dialogHide() {
      this.$emit('dialogHide')
    }
  }
}
</script>

